/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package object;

import java.util.HashMap;
import server.MTServer;
import sun.misc.BASE64Decoder;

/**
 *
 * @author daolam
 */
public class MTPlayer extends MTObject{
    private String _name;
    private int _diamond;
    private int _coin;
    
    public MTPlayer()
    {
        super();
    }
    
    @Override
    public void initialize() {
        super.initialize();
    }
    
    @Override
    public void newData() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
    @Override
    public void saveData() {
        HashMap<Short,String> data = new HashMap<>();
        data.put(MTPlayerProperty.guid, String.valueOf(this._guid));
        data.put(MTPlayerProperty.name, _name);
        data.put(MTPlayerProperty.diamond, String.valueOf(_diamond));
        data.put(MTPlayerProperty.coin, String.valueOf(_coin));
        
    }

    @Override
    public void loadData() {
        
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}
